package com.woniu51.k15demo.mapper;

import com.woniu51.k15demo.entity.Manager;
import com.woniu51.k15demo.vo.LoginDto;
import com.woniu51.k15demo.vo.ManagerVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ManagerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Manager record);

    Manager selectByPrimaryKey(Long id);

    List<Manager> selectAll();

    int updateByPrimaryKey(Manager record);


    @Select("select * from t_manager where user_code=#{userCode} and user_password=#{userPassword} ")
    Manager selectByUserNameAndPassword(LoginDto loginDto);

    List<ManagerVo> selectManagerByUserNameLike(String userName);
}